package io.renren.modules.paper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.paper.entity.PaperQuestion;
import io.renren.modules.paper.entity.PaperQuestionExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Yang
 * @Date 2019/9/16 15:30
 */
@Mapper
public interface PaperQuestionMapper extends BaseMapper<PaperQuestion> {
    long countByExample(PaperQuestionExample example);

    int deleteByExample(PaperQuestionExample example);

    int deleteByPrimaryKey(Integer queId);

    int insert(PaperQuestion record);

    int insertSelective(PaperQuestion record);

    List<PaperQuestion> selectByExample(PaperQuestionExample example);

    PaperQuestion selectByPrimaryKey(Integer queId);

    int updateByExampleSelective(@Param("record") PaperQuestion record, @Param("example") PaperQuestionExample example);

    int updateByExample(@Param("record") PaperQuestion record, @Param("example") PaperQuestionExample example);

    int updateByPrimaryKeySelective(PaperQuestion record);

    int updateByPrimaryKey(PaperQuestion record);

}